<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
        $ua = strtolower($_SERVER['HTTP_USER_AGENT']);
        if(strstr($ua,'mobile')){
          	$this->display('mobile');
        }else{
    		$this->display('pc');
        }
    }
}